#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <stdbool.h>

typedef int QueueDataType;

typedef struct QueueNode
{
	QueueDataType val;
	struct QueueNode* next;
}QueueNode;

typedef struct Queue
{
	QueueNode* head;
	QueueNode* tail;
}Queue;

void QueueInit(Queue* q);
void QueueDestroy(Queue* q);
void QueuePush(Queue* q, QueueDataType x);
bool QueueEmpty(Queue* q);
void QueuePop(Queue* q);
QueueDataType QueueFront(Queue* q);
QueueDataType QueueBack(Queue* q);
int QueueSize(Queue* q);
void QueuePrint(Queue* q);
